/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */


$(document).ready(function() {
    var headerHeight = 0;
    if ($(".header").is(':visible')) {
        headerHeight = $(".header").height();
    }
    var sumHeight = $(window).height() - ($(".popup").height() + headerHeight + $(".register-contrainer").height() + $(".footer").height());
    if (sumHeight < 0) {
        $(".content").height($(".register-contrainer").height()+60);
    }
});